package ebuy.com.cotroller;

import ebuy.com.server.Zongproductcatalogserveer;
import ebuy.com.util.RespBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Zongproductcatallogcotroller {
    @Autowired
    private Zongproductcatalogserveer zongproductcatalogserveer;
    @GetMapping("/getzoong")
    public RespBean GetZongproduct(@RequestParam("id")Integer id){
        String s = zongproductcatalogserveer.Querytheclassificationoftheproduct(id);
        return RespBean.success("查询成功",s);

    }
}
